package org.aplikator.client.rpc.impl;

import org.aplikator.client.data.ClientContext;
import org.aplikator.client.data.Record;
import org.aplikator.client.descriptor.FunctionDTO;
import org.aplikator.client.rpc.Command;

@SuppressWarnings("serial")
public class RunFunction implements Command<RunFunctionResponse> {
    private FunctionDTO function;
    private ClientContext clientContext;
    private Record functionParameters;

    @SuppressWarnings("unused")
    private RunFunction() {
    }

    public RunFunction(FunctionDTO function, ClientContext clientContext, Record functionParameters) {
        super();
        this.function = function;
        this.clientContext = clientContext;
        this.functionParameters = functionParameters;
    }

    public FunctionDTO getFunction() {
        return function;
    }

    public ClientContext getClientContext() {
        return clientContext;
    }

    public Record getFunctionParameters() {
        return functionParameters;
    }

}
